import request from '@/utils/request'

//添加管理员接口
export function _AddAdmin(data){
    return request(
        "/VueHandler/AdminLoginAndRegHandler?action=add",
        "post",
        data
    )
}
//获取管理员列表接口
export function _getAdmin(data){
    return request("/VueHandler/AdminHandler?action=show", "get", data);
}
//删除接口
export function _delAdmin(tokenId){
    return request("/VueHandler/AdminHandler?action=delete", "get", {
        tokenId: tokenId,
      })
}
//修改管理员列表接口
export function _editAdmin(data){
    return request("/VueHandler/AdminHandler?action=update", "post", data);
}